#ifndef _EOS_WRITE_D_H__
#define _EOS_WRITE_D_H__
#include "EOS_sys.h"
typedef struct{
	uint16 ID;
	uint8 *addr;
	uint32 size;
	uint32 memBlockItemSize;
	uint16 *memBlock;
}*P_FlashMem,FlashMem;

void FlashMallocInit(P_FlashMem pFlashMem);
void *FlashMallocReadOnly(P_FlashMem pFlashMem,uint32 mem_num);
uint32 FlashFree(P_FlashMem pFlashMem, void *mem_pointer);
uint32 FlashGetTruthSzie(P_FlashMem pFlashMem, void *mem_pointer);

#endif
